<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8">
    <title>v-for遍历数组</title>
  </head>

  <body>
    <div id="app">
      <h1>{{message}}</h1>
      <h1 v-for="(item,index) in movies">{{index+1}}-{{item}}</h1>
    </div>
    <script src="../js/vue.js"></script>
    <script>
      new Vue({
        el: "#app",
        data: {
          message: "数组列表展示",
          movies: ["海王", "海尔兄弟", "葫芦娃", "西游记"]
        }
      })
    </script>
  </body>

</html>